<template>
  <div class="mask" v-if="show">
    <div class="shade" @click="$emit('hide')" v-if="shade"></div>
    <div class="content" :anim="anim">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'maskLayer',
  data () {
    return{
      
    }
  },
  props:{
    show:Boolean,
    shade:{
      type:Boolean,
      default:true
    },
    anim:{
      type:String,
      default:' '
    }
  },
  methods:{
    
  },
  mounted(){
    
  }
}
</script>

<style lang="less" scoped>
.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  .shade{
    background: rgba(0,0,0,0.7);
    width: 100%;
    height: 100%;
  }
}
</style>